New Functions in Week 8

colnames

{base}

Retrieve column names of a data frame

rm

{base}

Remove objects

print

{base}

Print object to the console

geom_bar

{GGPLOT2}

Generates a bar chart

head

{utils}

Show first 5 rows of a data frame

reorder

{stats}

Reorder Levels of Factor based on the values of a second variable, usually numeric.

coord_flip

{GGPLOT2}

Flip the x and y axes of a graph

ls

{base}

Return a vector of character strings giving the names of the objects in the specified environment

predict

{stats}

Generate predicted values from model objects

after_stat

{GGPLOT2}

Control aesthetic evaluation. On the module used for displying percent

plotPlane

{rockchalk}

Draw a 3-D regression plot for two predictors

theme_latex

{tinytable}

A theme for modelsummary/tinytable tables

arrange

{dplyr}

Sort values of data frame according to a variable/combination of variables

str

{utils}

Get the structure of an R object

quantile

{stats}

Obtain empirical quantiles of a vector

order

{base}

Get indexes that will sort a vector

geom_histogram

{GGPLOT2}

Generates a histogram

which

{base}

return indexes of TRUE entries of a logical vector

scale_color_discrete

{GGPLOT2}

Customise the discrete colour scale

The end!